package com.whcoding.encrypt.common;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Repository;

/**
 * @program: spring-boot-learning
 * @description:加密key
 * @author: whcoding
 * @create: 2022-06-16 11:38
 **/
//读取配置文件
@ConfigurationProperties(prefix = "spring.encrypt")
@Repository
public class EncryptProperties {

	private final static String DEFAULT_KEY = "www.whcoding.com";

	private String key = DEFAULT_KEY;

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}
}
